/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package aiaudio.lastfm.hbase.measure;

import java.util.HashMap;
import java.util.Map.Entry;
import java.util.Set;

/**
 *
 * @author nastya
 */
public abstract class AlgorithmParameters {
    private String algorithmName;
    private HashMap<String, Object> parameters = new HashMap<String, Object>();

    public String getAlgorithmName() {
        return algorithmName;
    }
    
    public AlgorithmParameters(String algorithmName) {
        this.algorithmName = algorithmName;
    }

    protected Object put(String k, Object v) {
        return parameters.put(k, v);
    }

    public Set<String> parametersNamesSet() {
        return parameters.keySet();
    }

    public Object get(String o) {
        return parameters.get(o);
    }

    protected Set<Entry<String, Object>> entrySet() {
        return parameters.entrySet();
    }
    
    public abstract String toRowKey();
    
}
